//
//  OpenFailVC.swift
//  DianXia
//
//  Created by you&me on 2017/12/19.
//  Copyright © 2017年 you&me. All rights reserved.
//

import UIKit

class OpenFailVC: UIViewController {

    @IBOutlet weak var reasonLabel: UILabel!
    @IBOutlet weak var backBtn: UIButton!
    var reason = ""
    let dispose = DisposeBag()


    override func viewDidLoad() {
        super.viewDidLoad()
        reasonLabel.text = reason
        backBtn.rx.tap
            .subscribe({ _ in
                let vc = UIStoryboard.initialViewControllerFromStoryboard(.Home) as! UIViewController
                UIApplication.shared.keyWindow?.rootViewController = vc
            })
            .disposed(by: dispose)
    }

}
